package com.fred.learning.springbootdubbosampleprovider.service.impl;

import com.fred.learning.spring.boot.dubbo.sample.api.ISayHelloService;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author fred
 * @date 2021/7/3 下午3:18
 * @description todo
 */
@DubboService(registry = {"shanghai","hangzhou"})
public class SayHelloServiceImpl implements ISayHelloService {
    @Override
    public String say(String name) {
        try {
            //for test mock
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "[version 1.0] hello," + name;
    }
}
